package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.Privilege;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrivilegeMapper {
    int deleteByPrimaryKey(Integer privilegeId);

    int insert(Privilege record);

    int insertSelective(Privilege record);

    Privilege selectByPrimaryKey(Integer privilegeId);

    int updateByPrimaryKeySelective(Privilege record);

    int updateByPrimaryKey(Privilege record);

    List<Privilege> findAllPrivileges();

    List<Privilege> findPrivilegesByPrivilegeCodes(@Param("privilegeCodes") List<String> privilegeCodes);
}
